Fix three PyChecker-detected gotchas.
[python/dscho.git] / Mac / IDE scripts / Widget demos / ModalDialog.py
blob683a76aaa9a77f3a397328b8f5b9da228f98fcf9
1 import W
2 import Windows
5 w = W.ModalDialog((100, 100))
7 w.ed = W.EditText((10, 10, 80, 50))
8 w.ok = W.Button((10, 70, 80, 16), "Ok", w.close)
9 w.setdefaultbutton(w.ok)
10 w.open()